import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import Home from './Home';
import CargoDetailTest from './page/cargoDetailTest/index';
import RefreshControlTest from './page/RefreshControlTest';
import React from 'react';

const Stack = createStackNavigator();

function App() {
  return (
    <NavigationContainer>
      <Stack.Navigator initialRouteName="CargoDetailTest">
        <Stack.Screen name="Home" component={Home} />
        <Stack.Screen name="RefreshControlTest" component={RefreshControlTest} />
        <Stack.Screen name="CargoDetailTest" component={CargoDetailTest} options={{ title: null ,headerStyle:{width:0,height:0}}}/>
      </Stack.Navigator>
    </NavigationContainer>
  );
}
export default  App 
